package cn.itcast.nems.order.dao.entity;

import cn.itcast.nems.common.entity.LongIdEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * <p>
 * 销售订单-事件/日志
 * </p>
 *
 * @author liyong
 * @since 2023-08-31
 */
@Getter
@Setter
@NoArgsConstructor
@TableName("e2_order_event")
public class OrderEvent extends LongIdEntity {

    /**
     * 订单ID
     */
    private String orderId;

    /**
     * 事件类型：创建订单、部分支付、完成支付、订单取消、订单退费、开取发票、开取收据。注意：直接填中文即可
     */
    private String type;

    /**
     * 事件描述。
     */
    private String description;

    /**
     * 客户端ID
     */
    private Integer clientId;
    
    public OrderEvent(String orderId, String type, String description) {
        this.orderId = orderId;
        this.type = type;
        this.description = description;
    }
}
